<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Orderdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderdate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[orderdate]" type="text" value="{$row.orderdate}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ordernumber')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ordernumber" data-rule="required" class="form-control" name="row[ordernumber]" type="text" value="{$row.ordernumber}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Productname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ProductName" class="form-control" name="row[ProductName]" type="text" value="{$row.ProductName}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" data-rule="required" class="form-control" name="row[num]" type="number" value="{$row.num}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">品名規格:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" readonly  type="text" value="{$spec.lycl}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">雷標編號:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" readonly  type="text" value="{$row.lbnumber}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lystate')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="lystateList" item="vo"}
                <label for="row[lystate]-{$key}"><input id="row[lystate]-{$key}" name="row[lystate]" type="radio" value="{$key}" {in name="key" value="$row.lystate"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>

    {if intval($row.type) > 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">包裝貼標:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bztb"  class="form-control" readonly type="text" value="{$spec.bztb}">
        </div>
    </div>
    {/if}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
